package com.victualler.product.depot.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.victualler.core.base.dao.BaseDao;
import com.victualler.core.common.annotation.InitEditColumn;
import com.victualler.core.common.annotation.ListShowColumn;
import com.victualler.core.common.enums.ColumnFormatEnum;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author Guoshichang
 * @since 18:57 on 2018/10/2.
 * @Function  仓库实体
 */
@Entity
@Table(name="depot")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class DepotDao extends BaseDao implements Serializable {

    //仓库图标
    @ListShowColumn(title = "仓库图标",sort = 0,type = ColumnFormatEnum.IMAGE)
    @InitEditColumn(title = "仓库图标",sort = 0,type = ColumnFormatEnum.IMAGE)
    private Long imageId;

    //仓库编号
    @Column(nullable = false)
    @ListShowColumn(title = "仓库编号",sort = 1)
    @InitEditColumn(title = "仓库编号",sort = 1)
    private String depotNo;

    //仓库名称
    @Column(nullable = false)
    @ListShowColumn(title = "仓库名称",sort = 2)
    @InitEditColumn(title = "仓库名称",sort = 2)
    private String name;

    //地址信息
    @ListShowColumn(title = "地址信息",sort = 3)
    @InitEditColumn(title = "地址信息",sort = 3)
    private String address;

    //备注信息
    @ListShowColumn(title = "备注信息",sort = 4)
    @InitEditColumn(title = "备注信息",sort = 4,required = false)
    private String remark;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepotNo() {
        return depotNo;
    }

    public void setDepotNo(String depotNo) {
        this.depotNo = depotNo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public Long getImageId() {
        return imageId;
    }

    public void setImageId(Long imageId) {
        this.imageId = imageId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
